// AddDangerSourceCommand.java
package com.agileboot.domain.system.danger.command;

import com.agileboot.domain.system.danger.db.DangerSourceEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import javax.validation.constraints.NotBlank;
import java.util.Date;

@Data
public class AddDangerSourceCommand{
    @NotBlank(message = "危险源名称不能为空")
    private String dangerSourceName;

    private String dangerSourceCode;
    private String dangerType;
    private Long dutyDeptId;
    private String dangerSourceDescribe;
    private String harmDescribe;
    private String emergeCause;
    private String rootCause;
    private Long relatedReformId;
    private String relatedReformCode;
    private String correctiveAction;
    private Long relatedQuestionId = 0L;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date correctiveDeadline;

    private String precautionAction;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date precautionDeadline;

    private String actionMakerName;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date actionMakeTime;

    private String riskCode;
}
